﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Data;
using Automobile.service.Model;
using Automobile.service.DAL;

namespace Automobile.service.BLL
{
    public class EmployeeBll
    {
        EmployeeDal dal = new EmployeeDal();
        /// <summary>
        /// 用户显示
        /// </summary>
        /// <returns></returns>
        public List<EmployeeModel> xian()
        {
            return dal.xian();
        }
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="uname"></param>
        /// <param name="upwd"></param>
        /// <returns></returns>
        public int login(string Employee_Name, string Employee_Pwd)
        {
            return dal.login(Employee_Name, Employee_Pwd);
        }
        /// <summary>
        /// 添加用户信息
        /// </summary>
        /// <param name="b"></param>
        /// <returns></returns>
        public int AddEmployee(EmployeeModel e)
        {
            return dal.AddEmployee(e);
        }
         /// <summary>
        /// 取单个用户信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetEmployee(string Employee_Id)
        {
            return dal.GetEmployee(Employee_Id);
        }
        /// <summary>
        ///修改用户信息
        /// </summary>
        /// <param name="em"></param>
        /// <returns></returns>
        public int Update(EmployeeModel em)
        {
            return dal.Update(em);
        }
        /// <summary>
        /// 删除用户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DelEmployee(string id)
        {
            return dal.DelEmployee(id);
        }
    }
}
